<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="pop_up_content">
	<div class="pop_up_title images_13">
			编辑客户跟踪信息
	</div>
	<div class="pop_up_body">
		<form id="trackingInfoEdit" action="editTrackingInfo.action" >
			<input type="hidden" id="createDate" name="tif.createDate" type="text" value="${tif.createDate}">
			<input type="hidden" id="id" name="tif.id" type="text" value="${tif.id}">
			<table border="0" cellpadding="0" cellspacing="0" width="450px">
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red">*</span>跟踪内容
					</td>
					<td  colspan="3">
						<input style="width:260" id="tif.name" name="tif.name" type="text" value="${tif.name}" class="longinput max_length:20 required">
					</td>
				</tr>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red">*</span>跟踪类型
					</td>
					<td  colspan="3">
						<input style="width:260" id="tif.type" name="tif.type" type="text" value="${tif.type}" class="longinput max_length:10 required">
					</td>
				</tr>
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red">*</span>跟踪状态
					</td>
					<td  colspan="3">
						<s:select id="status" list="#{'1':'启用','0':'禁用'}" name="tif.status" headerKey="" headerValue="请选择" value="tif.status" theme="simple" cssClass="required"/>
					</td>
				</tr>
				
				<tr style="height:22px;">
					<td class="form_input_value">
							<span class="red">*</span>创建人
					</td>
					<td  colspan="3">
						<input style="width:260" readonly="readonly" id="createUser" name="tif.createUser" type="text" value="<s:property value="#session.user.userCname"/>" class="required">
					</td>
				</tr>
			
				<tr style="height:22px;">
					<td></td>
					<td colspan="3">
						<input id="trackingInfoEditSubmit" type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
						<input type="button" value="取消" class="btn" onclick="hideDialog()" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
<script>
	
	/* 表单提交 */
	i.formSubmit("trackingInfoEditSubmit",	//绑定的按钮id
					  "trackingInfoEdit" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								window.location.reload();
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});
</script>